<script setup>
import { ref } from '@vue/reactivity'
import HelloWorld from './components/HelloWorld.vue'
const count = ref(0)
const add = () => {
  count.value++
}

const reset = () => {
  count.value = 0
}

</script>

<template>
  <p>count： {{count}}</p>
  <HelloWorld v-model="count" />
  <br>
  <button @click="add">add</button>
  <br>
  <br>
  <button @click="reset">reset</button>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
